.PHONY: clean

all: stratego

stratego: stratego.o game.o board.o piece.o player.o aiPlayer.o posit.o
	g++ -o stratego stratego.o game.o board.o piece.o player.o aiPlayer.o posit.o

stratego.o: stratego.cpp game.h
	g++ -c stratego.cpp

game.o: game.cpp game.h board.h player.h aiPlayer.h
	g++ -c game.cpp

board.o: board.cpp board.h piece.h myMatrix.h myVector.h posit.h
	g++ -c board.cpp

piece.o: piece.cpp piece.h posit.h
	g++ -c piece.cpp

player.o: player.cpp player.h board.h
	g++ -c player.cpp

aiPlayer.o: aiPlayer.cpp aiPlayer.h board.h piece.h myVector.h
	g++ -c aiPlayer.cpp

posit.o: posit.cpp posit.h
	g++ -c posit.cpp

clean:
	rm -rf *.o

